package com.gzhryc.common.sms;

import java.io.Serializable;

public class PhoneVerifyData implements Serializable{

	private static final long serialVersionUID = 1L;
	
	protected String phone;
	protected String code;
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public boolean validate(String phone,String code){
		if(phone.equals(phone) && code.equals(code)){
			return true;
		}
		return false;
	}
}
